# 条件语句
x = 10
if x > 5:
    print("x 大于5")
elif x == 5:
    print("x 等于5")
else:
    print("x 小于5")

# for循环
fruits = ["apple", "banana", "cherry"]
print("水果列表：")
for fruit in fruits:
    print(fruit)

# while循环
count = 0
while count < 5:
    print("计数:", count)
    count += 1

# 控制语句
for i in range(1, 11):
    if i % 2 == 0:
        continue  # 跳过偶数
    if i == 7:
        break  # 终止循环
    print("奇数:", i)


# pass语句
def placeholder_function():
    pass  # 作为占位符的空函数


placeholder_function()
